/*
 * 标签文章列表页面样式文件 - Tag Posts Page Styles
 * 参照首页样式但移除顶部大图区域，保持布局一致性
 */

.tagPostsPage {
  min-height: 100vh;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding-top: 80px; // 为固定头部留出空间
}

.loadingContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  background: var(--bg-secondary);
}

.errorContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  background: var(--bg-secondary);
  
  .errorMessage {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
  }
}

.contentSection {
  padding: 40px 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 80px);
  
  .container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
  }
  
  .pageHeader {
    margin-bottom: 32px;
    text-align: center;
    
    .pageTitle {
      font-size: 32px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0;
      
      .postCount {
        font-size: 18px;
        font-weight: 400;
        color: var(--text-secondary);
        margin-left: 12px;
      }
    }
  }
  
  .mainContent {
    display: flex;
    gap: 30px;
    align-items: flex-start;
  }
  
  .articlesSection {
    flex: 1;
    min-width: 0;
  }
  
  .categoryTagsContainer {
    margin-bottom: 16px;
  }
  
  .sidebar {
    flex-shrink: 0;
    width: 400px;
  }
}

.cardGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  
  .emptyIcon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
  }
  
  .emptyText {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
  }
  
  .emptySubtext {
    font-size: 14px;
    color: var(--text-secondary);
  }
}

// 响应式设计
@media (max-width: 1024px) {
  .contentSection {
    .container {
      padding: 0 30px;
    }
  }
  
  .cardGrid {
    gap: 30px;
  }
}

@media (max-width: 1200px) {
  .mainContent {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .tagPostsPage {
    padding-top: 60px;
  }
  
  .contentSection {
    padding: 20px 0;
    
    .container {
      padding: 0 20px;
    }
    
    .pageHeader {
      margin-bottom: 24px;
      
      .pageTitle {
        font-size: 24px;
        
        .postCount {
          font-size: 14px;
          display: block;
          margin-left: 0;
          margin-top: 4px;
        }
      }
    }
  }
  
  .cardGrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar {
    display: none;
  }
  
  .emptyState {
    padding: 60px 20px;
    
    .emptyIcon {
      font-size: 48px;
    }
    
    .emptyText {
      font-size: 18px;
    }
  }
}

@media (max-width: 480px) {
  .contentSection {
    .pageHeader {
      .pageTitle {
        font-size: 20px;
      }
    }
  }
  
  .emptyState {
    padding: 40px 15px;
    
    .emptyIcon {
      font-size: 40px;
    }
    
    .emptyText {
      font-size: 16px;
    }
    
    .emptySubtext {
      font-size: 12px;
    }
  }
}